package com.wxc.wxcwzq.web.entity;

import java.util.List;

/**
 * 角色实体类
 * @author wzq
 * @Date 2019-04-17 
 */
public class SysRoles {
    private Long id; //主键

    private String role;//角色名称

    private String roleCode; //角色编码
    
    private String description; //描述

    private Integer avaliable;//删除标识 ；0-征程、1-删除

    private Integer roleType; //类型

    //非映射
    private List<SysPermission> permissions;//权限集合
    
    
    public List<SysPermission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<SysPermission> permissions) {
		this.permissions = permissions;
	}

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getAvaliable() {
		return avaliable;
	}

	public void setAvaliable(Integer avaliable) {
		this.avaliable = avaliable;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer role_type) {
		this.roleType = role_type;
	}

	public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

}